package com.chenxingnet.dto;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class AuthExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public AuthExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andAuthidIsNull() {
            addCriterion("AuthID is null");
            return (Criteria) this;
        }

        public Criteria andAuthidIsNotNull() {
            addCriterion("AuthID is not null");
            return (Criteria) this;
        }

        public Criteria andAuthidEqualTo(Integer value) {
            addCriterion("AuthID =", value, "authid");
            return (Criteria) this;
        }

        public Criteria andAuthidNotEqualTo(Integer value) {
            addCriterion("AuthID <>", value, "authid");
            return (Criteria) this;
        }

        public Criteria andAuthidGreaterThan(Integer value) {
            addCriterion("AuthID >", value, "authid");
            return (Criteria) this;
        }

        public Criteria andAuthidGreaterThanOrEqualTo(Integer value) {
            addCriterion("AuthID >=", value, "authid");
            return (Criteria) this;
        }

        public Criteria andAuthidLessThan(Integer value) {
            addCriterion("AuthID <", value, "authid");
            return (Criteria) this;
        }

        public Criteria andAuthidLessThanOrEqualTo(Integer value) {
            addCriterion("AuthID <=", value, "authid");
            return (Criteria) this;
        }

        public Criteria andAuthidIn(List<Integer> values) {
            addCriterion("AuthID in", values, "authid");
            return (Criteria) this;
        }

        public Criteria andAuthidNotIn(List<Integer> values) {
            addCriterion("AuthID not in", values, "authid");
            return (Criteria) this;
        }

        public Criteria andAuthidBetween(Integer value1, Integer value2) {
            addCriterion("AuthID between", value1, value2, "authid");
            return (Criteria) this;
        }

        public Criteria andAuthidNotBetween(Integer value1, Integer value2) {
            addCriterion("AuthID not between", value1, value2, "authid");
            return (Criteria) this;
        }

        public Criteria andAuthnameIsNull() {
            addCriterion("AuthName is null");
            return (Criteria) this;
        }

        public Criteria andAuthnameIsNotNull() {
            addCriterion("AuthName is not null");
            return (Criteria) this;
        }

        public Criteria andAuthnameEqualTo(String value) {
            addCriterion("AuthName =", value, "authname");
            return (Criteria) this;
        }

        public Criteria andAuthnameNotEqualTo(String value) {
            addCriterion("AuthName <>", value, "authname");
            return (Criteria) this;
        }

        public Criteria andAuthnameGreaterThan(String value) {
            addCriterion("AuthName >", value, "authname");
            return (Criteria) this;
        }

        public Criteria andAuthnameGreaterThanOrEqualTo(String value) {
            addCriterion("AuthName >=", value, "authname");
            return (Criteria) this;
        }

        public Criteria andAuthnameLessThan(String value) {
            addCriterion("AuthName <", value, "authname");
            return (Criteria) this;
        }

        public Criteria andAuthnameLessThanOrEqualTo(String value) {
            addCriterion("AuthName <=", value, "authname");
            return (Criteria) this;
        }

        public Criteria andAuthnameLike(String value) {
            addCriterion("AuthName like", value, "authname");
            return (Criteria) this;
        }

        public Criteria andAuthnameNotLike(String value) {
            addCriterion("AuthName not like", value, "authname");
            return (Criteria) this;
        }

        public Criteria andAuthnameIn(List<String> values) {
            addCriterion("AuthName in", values, "authname");
            return (Criteria) this;
        }

        public Criteria andAuthnameNotIn(List<String> values) {
            addCriterion("AuthName not in", values, "authname");
            return (Criteria) this;
        }

        public Criteria andAuthnameBetween(String value1, String value2) {
            addCriterion("AuthName between", value1, value2, "authname");
            return (Criteria) this;
        }

        public Criteria andAuthnameNotBetween(String value1, String value2) {
            addCriterion("AuthName not between", value1, value2, "authname");
            return (Criteria) this;
        }

        public Criteria andAuthurlIsNull() {
            addCriterion("AuthURL is null");
            return (Criteria) this;
        }

        public Criteria andAuthurlIsNotNull() {
            addCriterion("AuthURL is not null");
            return (Criteria) this;
        }

        public Criteria andAuthurlEqualTo(String value) {
            addCriterion("AuthURL =", value, "authurl");
            return (Criteria) this;
        }

        public Criteria andAuthurlNotEqualTo(String value) {
            addCriterion("AuthURL <>", value, "authurl");
            return (Criteria) this;
        }

        public Criteria andAuthurlGreaterThan(String value) {
            addCriterion("AuthURL >", value, "authurl");
            return (Criteria) this;
        }

        public Criteria andAuthurlGreaterThanOrEqualTo(String value) {
            addCriterion("AuthURL >=", value, "authurl");
            return (Criteria) this;
        }

        public Criteria andAuthurlLessThan(String value) {
            addCriterion("AuthURL <", value, "authurl");
            return (Criteria) this;
        }

        public Criteria andAuthurlLessThanOrEqualTo(String value) {
            addCriterion("AuthURL <=", value, "authurl");
            return (Criteria) this;
        }

        public Criteria andAuthurlLike(String value) {
            addCriterion("AuthURL like", value, "authurl");
            return (Criteria) this;
        }

        public Criteria andAuthurlNotLike(String value) {
            addCriterion("AuthURL not like", value, "authurl");
            return (Criteria) this;
        }

        public Criteria andAuthurlIn(List<String> values) {
            addCriterion("AuthURL in", values, "authurl");
            return (Criteria) this;
        }

        public Criteria andAuthurlNotIn(List<String> values) {
            addCriterion("AuthURL not in", values, "authurl");
            return (Criteria) this;
        }

        public Criteria andAuthurlBetween(String value1, String value2) {
            addCriterion("AuthURL between", value1, value2, "authurl");
            return (Criteria) this;
        }

        public Criteria andAuthurlNotBetween(String value1, String value2) {
            addCriterion("AuthURL not between", value1, value2, "authurl");
            return (Criteria) this;
        }

        public Criteria andAuthstateIsNull() {
            addCriterion("AuthState is null");
            return (Criteria) this;
        }

        public Criteria andAuthstateIsNotNull() {
            addCriterion("AuthState is not null");
            return (Criteria) this;
        }

        public Criteria andAuthstateEqualTo(Integer value) {
            addCriterion("AuthState =", value, "authstate");
            return (Criteria) this;
        }

        public Criteria andAuthstateNotEqualTo(Integer value) {
            addCriterion("AuthState <>", value, "authstate");
            return (Criteria) this;
        }

        public Criteria andAuthstateGreaterThan(Integer value) {
            addCriterion("AuthState >", value, "authstate");
            return (Criteria) this;
        }

        public Criteria andAuthstateGreaterThanOrEqualTo(Integer value) {
            addCriterion("AuthState >=", value, "authstate");
            return (Criteria) this;
        }

        public Criteria andAuthstateLessThan(Integer value) {
            addCriterion("AuthState <", value, "authstate");
            return (Criteria) this;
        }

        public Criteria andAuthstateLessThanOrEqualTo(Integer value) {
            addCriterion("AuthState <=", value, "authstate");
            return (Criteria) this;
        }

        public Criteria andAuthstateIn(List<Integer> values) {
            addCriterion("AuthState in", values, "authstate");
            return (Criteria) this;
        }

        public Criteria andAuthstateNotIn(List<Integer> values) {
            addCriterion("AuthState not in", values, "authstate");
            return (Criteria) this;
        }

        public Criteria andAuthstateBetween(Integer value1, Integer value2) {
            addCriterion("AuthState between", value1, value2, "authstate");
            return (Criteria) this;
        }

        public Criteria andAuthstateNotBetween(Integer value1, Integer value2) {
            addCriterion("AuthState not between", value1, value2, "authstate");
            return (Criteria) this;
        }

        public Criteria andAuthdateIsNull() {
            addCriterion("AuthDate is null");
            return (Criteria) this;
        }

        public Criteria andAuthdateIsNotNull() {
            addCriterion("AuthDate is not null");
            return (Criteria) this;
        }

        public Criteria andAuthdateEqualTo(Date value) {
            addCriterion("AuthDate =", value, "authdate");
            return (Criteria) this;
        }

        public Criteria andAuthdateNotEqualTo(Date value) {
            addCriterion("AuthDate <>", value, "authdate");
            return (Criteria) this;
        }

        public Criteria andAuthdateGreaterThan(Date value) {
            addCriterion("AuthDate >", value, "authdate");
            return (Criteria) this;
        }

        public Criteria andAuthdateGreaterThanOrEqualTo(Date value) {
            addCriterion("AuthDate >=", value, "authdate");
            return (Criteria) this;
        }

        public Criteria andAuthdateLessThan(Date value) {
            addCriterion("AuthDate <", value, "authdate");
            return (Criteria) this;
        }

        public Criteria andAuthdateLessThanOrEqualTo(Date value) {
            addCriterion("AuthDate <=", value, "authdate");
            return (Criteria) this;
        }

        public Criteria andAuthdateIn(List<Date> values) {
            addCriterion("AuthDate in", values, "authdate");
            return (Criteria) this;
        }

        public Criteria andAuthdateNotIn(List<Date> values) {
            addCriterion("AuthDate not in", values, "authdate");
            return (Criteria) this;
        }

        public Criteria andAuthdateBetween(Date value1, Date value2) {
            addCriterion("AuthDate between", value1, value2, "authdate");
            return (Criteria) this;
        }

        public Criteria andAuthdateNotBetween(Date value1, Date value2) {
            addCriterion("AuthDate not between", value1, value2, "authdate");
            return (Criteria) this;
        }

        public Criteria andAuthmarkIsNull() {
            addCriterion("AuthMark is null");
            return (Criteria) this;
        }

        public Criteria andAuthmarkIsNotNull() {
            addCriterion("AuthMark is not null");
            return (Criteria) this;
        }

        public Criteria andAuthmarkEqualTo(String value) {
            addCriterion("AuthMark =", value, "authmark");
            return (Criteria) this;
        }

        public Criteria andAuthmarkNotEqualTo(String value) {
            addCriterion("AuthMark <>", value, "authmark");
            return (Criteria) this;
        }

        public Criteria andAuthmarkGreaterThan(String value) {
            addCriterion("AuthMark >", value, "authmark");
            return (Criteria) this;
        }

        public Criteria andAuthmarkGreaterThanOrEqualTo(String value) {
            addCriterion("AuthMark >=", value, "authmark");
            return (Criteria) this;
        }

        public Criteria andAuthmarkLessThan(String value) {
            addCriterion("AuthMark <", value, "authmark");
            return (Criteria) this;
        }

        public Criteria andAuthmarkLessThanOrEqualTo(String value) {
            addCriterion("AuthMark <=", value, "authmark");
            return (Criteria) this;
        }

        public Criteria andAuthmarkLike(String value) {
            addCriterion("AuthMark like", value, "authmark");
            return (Criteria) this;
        }

        public Criteria andAuthmarkNotLike(String value) {
            addCriterion("AuthMark not like", value, "authmark");
            return (Criteria) this;
        }

        public Criteria andAuthmarkIn(List<String> values) {
            addCriterion("AuthMark in", values, "authmark");
            return (Criteria) this;
        }

        public Criteria andAuthmarkNotIn(List<String> values) {
            addCriterion("AuthMark not in", values, "authmark");
            return (Criteria) this;
        }

        public Criteria andAuthmarkBetween(String value1, String value2) {
            addCriterion("AuthMark between", value1, value2, "authmark");
            return (Criteria) this;
        }

        public Criteria andAuthmarkNotBetween(String value1, String value2) {
            addCriterion("AuthMark not between", value1, value2, "authmark");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}